package com.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Transient;
import java.io.Serializable;

/**
 * @Author: PengFei.He
 * @Date: 2024/11/6 19:48
 * @Function:
 */
@Data
@TableName("log")
public class Log implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField("name")
    private String name;

    @TableField("ip")
    private String ip;

    @TableField("username")
    private String username;

    @TableField("time")
    private String time;

    public Log() {
    }

    public Log(Integer id, String time, String ip, String username, String name) {
        this.id = id;
        this.time = time;
        this.ip = ip;
        this.username = username;
        this.name = name;
    }
}
